home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / turttleo.swf / scripts / DefineSprite_24_buble / frame_1 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  303 b   |  15 lines

  1. this.onEnterFrame = function()
  2. {
  3.    this._y -= 2;
  4.    this._y -= Math.random() * 4;
  5.    if(this._y < 0)
  6.    {
  7.       this._visible = false;
  8.       this.unloadMovie();
  9.    }
  10.    this._x += Math.random() * 4 - 2;
  11. };
  12. var temp = Math.random() * 0.6 + 0.6;
  13. this._xscale *= temp;
  14. this._yscale *= temp;
  15.